<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Route::get('/', function () {
    return view('register');
});
Route::get('/log', function () {
    return view('users/login');
});

Route::get('/out', 'Test@logout');


Route::post('/add', 'Test@add');
Route::post('/sendsms', 'Test@sendMobile');
Route::post('/login', 'Test@login');


//show
Route::group(['prefix' => 'show'], function () {
    Route::get('/visit',function (){
        return view('show/visit');
    });
    Route::get('/visit2',function (){
        return view('show/visit2');
    });
    Route::get('/show',  ['middleware' => 'sign',function () {
        return view('show/show');
    }]);

});


//qq登陆回调地址
Route::get('/qqlogin','QQlogin@qqlogin');
Route::get('/qq','QQlogin@qq');

//微信登陆
Route::get('/weixin', 'Weixinlogin@redirectToProvider');
Route::get('/weixin/callback','Weixinlogin@handleProviderCallback');


//image
Route::post('/uploadImage','Image_ct@upload');
Route::post('/uploading','Image_ct@uploading');
Route::post('/uploadimg','Image_ct@uploadimg');

Route::get('/upimage',function (){
    return view('imagect/uplodeimage');
});
Route::get('/model','ModelCT@test');

//page
Route::get('/next/{page?}', 'ModelCT@page_next');
Route::get('/before/{id?}', 'ModelCT@page_before');

//del
Route::post('/del', 'ModelCT@del');

